using Cassette;
using Cassette.Scripts;
using Cassette.Stylesheets;
using P7DC.Web.Common.Extentions;

namespace P7DC.Web
{
	/// <summary>
	/// Configures the Cassette asset bundles for the web application.
	/// </summary>
	public class CassetteBundleConfiguration : IConfiguration<BundleCollection>
	{
		public void Configure(BundleCollection bundles)
		{
			// Css path
			bundles.AddBundle<StylesheetBundle>(new[]
				{
					"~/Content",
				});

			// Script path
			bundles.AddBundle<ScriptBundle>(new[]
				{
					"~/Scripts",
				});
		}
	}
}